<template>
  <div class="field is-horizontal form-item">
    <div class="field-label is-normal">
      <label class="label">{{label}}</label>
    </div>
    <div class="field-body">
      <slot></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: 'form-item',
  props: {
    label: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.form-item{
  width: 80%;
  .field-body{
    display: flex;
    align-items: center;
  }
}
</style>

